<?php echo $this->Html->script('table_dynamic',FALSE);?>
<div class="row-fluid">
    <div class="box paint_hover color_18">
        <div class="title">
            <h4> <span>Danh Sách Người Dùng<small></small></span> </h4>
        </div>
        <!-- End .title -->

        <div class="content top">
            <table id="datatable_example" class="responsive table table-striped table-bordered" style="width:100%;margin-bottom:0; ">
                <thead>
                <tr>
                    <th class="no_sort">Ảnh Đại Diện</th>
                    <th class="">Tài Khoản</th>
                    <th class="to_hide_phone ue">Họ Tên</th>
                    <th class="to_hide_phone ue no_sort">Giới Tính</th>
                    <th class="to_hide_phone ue no_sort">Email</th>
                    <th class="ms no_sort ">Địa Chỉ</th>
                    <th class="ms no_sort ">Hành Động</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach($listuser as $value) { ?>
                <tr>
                    <td><img class="thumbnail small" style='max-width:50px; max-height:50px;' src="<?php echo $base_url_img.$value["User"]["img"];?>"></td>
                    <td class="to_hide_phone"><?php echo $value["User"]["username"];?></td>
                    <td class="to_hide_phone"><?php echo $value["User"]["fullname"];?></td>
                    <td class="to_hide_phone"><?php echo ($value['User']['gioitinh']==0)?'Nam':'Nữ';?></td>
                    <td class="to_hide_phone"><?php echo $value["User"]["email"];?></td>
                    <td class="to_hide_phone"><?php echo $value["User"]["diachi"];?></td>
                    <td class="ms"><a class="btn btn-small" href='<?php echo $base_url;?>nguoi-dung-<?php echo $value["User"]["username"]; ?>-<?php echo $value["User"]["id"]; ?>.html' rel="tooltip" data-placement="top" data-original-title="Chi Tiết"><i class="gicon-eye-open"></i></a> </td>
                </tr>
                <?php } ?>
                </tbody>
            </table>
        </div>
        <!-- End .content -->

    </div>
    <!-- End box -->
</div>
<!-- End .row-fluid -->
